package cn.yeziji.forum.common.enums.status;

import cn.yeziji.forum.common.ResultCode;
import cn.yeziji.forum.common.enums.status.code.DetailsCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 文章返回状态
 *
 * @author gzkemays
 * @since 2021/12/22 17:21
 */
@Getter
@AllArgsConstructor
public enum DetailsStatus {
  /** 文章统一状态枚举 */
  DETAILS_PUBLISH_SUCCESS(ResultCode.OK, "发布成功"),
  DETAILS_TEMP_SAVE_SUCCESS(ResultCode.OK, "暂存成功"),
  DETAILS_AUTO_SAVE_SUCCESS(ResultCode.OK, "自动保存成功"),
  DETAILS_PUBLISH_FAIL(DetailsCode.PUBLISH_FAIL, "发布失败"),
  DETAILS_TEMP_SAVE_FAIL(DetailsCode.TEMP_SAVE_FAIL, "暂存失败"),
  DETAILS_OPERATION_FAIL(DetailsCode.OPERATION_FAIL, "文章操作失败"),
  DETAILS_IS_NOT_FOUND(DetailsCode.NOT_FOUND, "没有该文章"),
  DETAILS_AUTO_SAVE_FAIL(DetailsCode.AUTO_SAVE_FAIL, "自动保存失败");
  int code;
  String msg;
}
